package com.njtoyo.taxi.admin.logic.business.simple_call;

import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.njtoyo.taxi.admin.mapper.master.entity.SimpleCallRideCancellation;
import com.njtoyo.taxi.admin.mapper.master.mapper.SimpleCallRideCancellationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public class SimpleCallRideCancellationLogic {
    @Autowired
    private SimpleCallRideCancellationMapper simpleCallRideCancellationMapper;

    public List<SimpleCallRideCancellation> selectByRideIds(Set<Long> rideIds) {
        return new LambdaQueryChainWrapper<>(simpleCallRideCancellationMapper)
                .in(SimpleCallRideCancellation::getRideId, rideIds)
                .list();
    }
}
